package com.fyzk.activity.prize;

public class JC_PrizeInfor {
	
	public String id = "000";
	
	public String league = "error";
	
	public String team = "x:x";
	
	public String home = "x";
	public String away = "x";
	
	public String teamId = "error";
	
	public String week = "error";
	/**
	 * 胜平负结果
	 */
	public String v = "error";
	/**
	 * 比分结果
	 */
	public String score = "error";
	/**
	 * 总进球结果
	 */
	public String goal = "error";
	/**
	 * 半全场结果
	 */
	public String half_v00 = "error";
	/**
	 * 让球结果
	 */
	public String letVs = "error";
	/**
	 * 让球数
	 */
	public String letVs_letPoint = "error";
	
	/**
	 * 赛果字串转换（将 “3” 转换为 “胜”）
	 * @param saiGuo
	 * @return
	 */
	public String saiGuoZhuanHuan(String saiGuo){
		if (saiGuo == null) {
			return "null";
		}
		
		if (saiGuo.contains("3")) {
			saiGuo = saiGuo.replace("3", "胜");
		}
		if (saiGuo.contains("1")) {
			saiGuo = saiGuo.replace("1", "平");
		}
		if (saiGuo.contains("0")) {
			saiGuo = saiGuo.replace("0", "负");
		}
		
		return saiGuo;
	}
}
